<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			/*创建数组*/
			//1.
			var arra = new Array();
			console.log(typeof arra);
			//赋值
			arra[0]="admin";
			arra[1]=123;
			for(var i=0;i<arra.length;i++){
				console.log(typeof arra[i]);
			}
			//2.
			var arra = new Array("admin",123);
			//3.
			//数值大小的排序
			var arra = [12,123,6,89,100];
			arra.sort();
			for(var i=0;i<arra.length;i++){
				console.log(arra[i]);
			}
		</script>
	</head>
	<body>
	</body>
</html>
